{include file="public/head"/}
<div class="layui-fluid" id="LAY-app-message">
    <div class="layui-card">
        <div class="layui-card-header">系统设置分组字段</div>
        <input type="hidden" id="gid" value="{:input('gid')}">
        <div class="layui-card-body">
            <div class="table-head-btn layui-form" style="margin-bottom: 10px;">
                <div class="layui-inline">
                    <input class="layui-input" name="key" id="key" placeholder="分组名称" autocomplete="off">
                </div>

                <button class="layui-btn" data-type="reload">搜索</button>
            </div>
            <table class="layui-table" id="list" lay-filter="list"></table>
        </div>
    </div>
</div>
{include file="public/foot"/}
<script type="text/html" id="url">
    <a href="{{d.url}}" target="_blank">{{d.url}}</a>
</script>
<script type="text/html" id="requireds">
    <input type="checkbox" name="required" id="required" value="{{d.id}}" lay-skin="switch" lay-text="是|否" lay-filter="required" {{d.required == 1 ? 'checked' : ''}}>
</script>
<script type="text/html" id="statuss">
    <input type="checkbox" name="status" id="status" value="{{d.id}}" lay-skin="switch" lay-text="启用|禁用" lay-filter="status" {{d.status == 1 ? 'checked' : ''}}>
</script>
<script type="text/html" id="action">
    <button class="layui-btn layui-btn-xs" lay-event="edit">编辑</button>
    <button class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</button>
</script>
<script type="text/html" id="toolbar">
    <div class="layui-btn-container">
        <button class="layui-btn layui-btn-sm" lay-event="add">添加字段</button>
        <button class="layui-btn layui-btn-danger layui-btn-sm" lay-event="direct">批量删除</button>
    </div>
</script>
<script>
    layui.config({
        base: '__LAYADMIN__/',
        version: true
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index','system_field']);
</script>
</body>
</html>